package com.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.sql.Date;

public class Staff {
    private Integer id;         //staff主键
    private Integer staffId;    //员工ID
    private String staffName;   //员工姓名
    private String password;    //登陆密码
    private String phone;       //员工电话
    private String idCard;      //员工身份证号码
    private String address;     //员工地址
    @JSONField(format = "yyyy-MM-dd")
    private Date createdTime;   //入职日期
    private Integer status;     //员工状态(1.在职 2.离职 3.黑名单)
    private Integer roleId;     //角色
    private String momo;        //备注
    private Integer enable;

    public Staff() {
    }



    public Staff(Integer id, Integer staffId, String staffName, String password) {
        this.id = id;
        this.staffId = staffId;
        this.staffName = staffName;
        this.password = password;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStaffId() {
        return staffId;
    }

    public void setStaffId(Integer staffId) {
        this.staffId = staffId;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getMomo() {
        return momo;
    }

    public void setMomo(String momo) {
        this.momo = momo;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public Staff(Integer id, Integer staffId, String staffName, String password, String phone, String idCard, String address, Date createdTime, Integer status, Integer roleId, String momo, Integer enable) {
        this.id = id;
        this.staffId = staffId;
        this.staffName = staffName;
        this.password = password;
        this.phone = phone;
        this.idCard = idCard;
        this.address = address;
        this.createdTime = createdTime;
        this.status = status;
        this.roleId = roleId;
        this.momo = momo;
        this.enable = enable;
    }

    public Staff(Integer staffId, String staffName, String phone, String idCard, String address, Integer status, Integer roleId, String momo) {
        this.staffId = staffId;
        this.staffName = staffName;
        this.phone = phone;
        this.idCard = idCard;
        this.address = address;
        this.status = status;
        this.roleId = roleId;
        this.momo = momo;
    }

    @Override
    public String toString() {
        return "Staff{" +
                "id=" + id +
                ", staffId=" + staffId +
                ", staffName='" + staffName + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", idCard='" + idCard + '\'' +
                ", address='" + address + '\'' +
                ", createdTime=" + createdTime +
                ", status=" + status +
                ", roleId=" + roleId +
                ", momo='" + momo + '\'' +
                ", enable=" + enable +
                '}';
    }
}
